<template>
	<view class="container">
		<cu-custom :bgColor="theme.themeClass" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">地址列表</block>
		</cu-custom>
		<view  class="cu-list menu sm-border card-menu margin">
			<view class="cu-item "  v-for="(items,index) in 10" :key="index">
				<view class="content padding-tb-sm">
					<view>
						保护者星灵-13189698221
						<view v-if="index==5" class="cu-tag margin-left round bg-orange text-xs">默认</view>
					</view>
					<view class="text-gray text-sm">
						<text class="text-cut"></text>
						湖南省湖南省长沙市岳麓区梅溪湖东大坝咀小区10栋
					</view>
				</view>
				<view class="action">
					<text class="cuIcon-edit text-sl text-gray"></text>
				</view>
			</view>
		</view>
		<view class="place"></view>
		<view class="fixed-btn">
			<view class="padding flex flex-direction">
				<button @tap="toAddress" :class="['cu-btn','lg',theme.themeClass]">新增地址</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				theme: this.theme,
			};
		},
		methods:{
			toAddress(){
				uni.navigateTo({
					url:"/pages/user/address"
				})
			}
		}
	}
</script>

<style lang="scss">
.fixed-btn{
	position: fixed;
	bottom: 0upx;
	left: 0upx;
	width: 100%;
	height: 120upx;
	background-color: #FFFFFF;
}
</style>
